<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;

include_once "function_sec_able.php";
$in_array['Name'] = "Default";
$in_array['Enabled'] = "1";
$in_array['MSN'] = $_POST['msn'];
$in_array['QQ'] = $_POST['qq'];
$in_array['AIM'] = $_POST['aim'];
$in_array['JABBER'] = $_POST['jabber'];
$in_array['IRC'] = $_POST['irc'];
$in_array['YAHOO'] = $_POST['yahoo'];
$in_array['BT'] = $_POST['bt'];
$in_array['EMAULE'] = $_POST['p2p'];
$in_array['XUNLEI'] = $_POST['xl'];
$in_array['STREAM'] = $_POST['sv'];
$in_array['Log'] = $_POST['log'];

$dis = new CDisabled();
$dis->edit_item_by_name($in_array['Name'], $in_array);
$dis->Apply();

echo("<meta http-equiv='refresh'content=0;URL='sec_able_protocol_manage.php'>");
?>
